package TDALista;

public class Node<E> implements Position<E> {
	private E element;
	private Node<E> next;
	
	public Node(E element, Node<E> next){
		this.element=element;
		this.next=next;
	}
	
	public Node(E element){
		this(element,null);
	}

	public void setElement(E element){
		this.element=element;
	}
	
	public void setNext(Node<E> next){
		this.next=next;
	}
	
	public Node<E> getNext(){
		return next;
	}
	
	public E element() {
		return element;
	}

}
